<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libnfporb API Reference: src/svg.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libnfporb API Reference
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">svg.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;boost/geometry/io/svg/svg_mapper.hpp&gt;</code><br />
<code>#include &quot;<a class="el" href="geometry_8hpp_source.html">geometry.hpp</a>&quot;</code><br />
</div>
<p><a href="svg_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacelibnfporb"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html">libnfporb</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a64f59ee99cb348bdf67ee3bd5a78dfbe"><td class="memItemLeft" align="right" valign="top">polygonf_t::ring_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">libnfporb::convert</a> (const polygon_t::ring_type &amp;r)</td></tr>
<tr class="memdesc:a64f59ee99cb348bdf67ee3bd5a78dfbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Because the boost svg mapper can't handle our custom types we have to convert polygon_t::ring_type to polygonf_t::ring_type (which is using "long double" as coordinate type).  <a href="namespacelibnfporb.html#a64f59ee99cb348bdf67ee3bd5a78dfbe">More...</a><br /></td></tr>
<tr class="separator:a64f59ee99cb348bdf67ee3bd5a78dfbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeaf5bf20e6a7560be09432e29f99c15"><td class="memItemLeft" align="right" valign="top">polygonf_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html#aeeaf5bf20e6a7560be09432e29f99c15">libnfporb::convert</a> (const polygon_t &amp;p)</td></tr>
<tr class="memdesc:aeeaf5bf20e6a7560be09432e29f99c15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Because the boost svg mapper can't handle our custom types we have to convert polygon_t to polygonf_t (which is using "long double" as coordinate type).  <a href="namespacelibnfporb.html#aeeaf5bf20e6a7560be09432e29f99c15">More...</a><br /></td></tr>
<tr class="separator:aeeaf5bf20e6a7560be09432e29f99c15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefa8e61428bb5385bf8a62bb0a17cdd8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">libnfporb::write_svg</a> (std::string const &amp;filename, const std::vector&lt; segment_t &gt; &amp;segments)</td></tr>
<tr class="memdesc:aefa8e61428bb5385bf8a62bb0a17cdd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes segments to a svg file.  <a href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">More...</a><br /></td></tr>
<tr class="separator:aefa8e61428bb5385bf8a62bb0a17cdd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a877a4cb0cdeea479be0bbe36b6da962a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html#a877a4cb0cdeea479be0bbe36b6da962a">libnfporb::write_svg</a> (std::string const &amp;filename, const polygon_t &amp;p, const polygon_t::ring_type &amp;ring)</td></tr>
<tr class="memdesc:a877a4cb0cdeea479be0bbe36b6da962a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes a polygon (A) and a ring (B) to a svg file.  <a href="namespacelibnfporb.html#a877a4cb0cdeea479be0bbe36b6da962a">More...</a><br /></td></tr>
<tr class="separator:a877a4cb0cdeea479be0bbe36b6da962a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae512dbc5633f5e059db3b4a4bb6de779"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html#ae512dbc5633f5e059db3b4a4bb6de779">libnfporb::write_svg</a> (std::string const &amp;filename, typename std::vector&lt; polygon_t &gt; const &amp;polygons)</td></tr>
<tr class="memdesc:ae512dbc5633f5e059db3b4a4bb6de779"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes polygons a svg file.  <a href="namespacelibnfporb.html#ae512dbc5633f5e059db3b4a4bb6de779">More...</a><br /></td></tr>
<tr class="separator:ae512dbc5633f5e059db3b4a4bb6de779"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01e5ab93f9600d8c50a6af660fb5a2da"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacelibnfporb.html#a01e5ab93f9600d8c50a6af660fb5a2da">libnfporb::write_svg</a> (std::string const &amp;filename, const polygon_t &amp;pA, const polygon_t &amp;pB, const nfp_t &amp;nfp)</td></tr>
<tr class="memdesc:a01e5ab93f9600d8c50a6af660fb5a2da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes pA, pB and the resulting NFP to a svg file.  <a href="namespacelibnfporb.html#a01e5ab93f9600d8c50a6af660fb5a2da">More...</a><br /></td></tr>
<tr class="separator:a01e5ab93f9600d8c50a6af660fb5a2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
